Expand description

Macros for Viz Web Framework

Generators for handler

Handler

TODO: `#[handler.before(a).after(b).around(c)]

Example

use viz::{IntoResponse, Result};
use viz_macros::handler;

#[handler]
async fn index() -> impl IntoResponse {
    ()
}

#[handler]
async fn get_user() -> Result<impl IntoResponse> {
    Ok(())
}

Attribute Macros